﻿using System.Collections.Generic;
using T.FAS.Runtime.Base.Entity;
using T.FAS.Runtime.Metadata.Entity.DataModel;

namespace T.FAS.Runtime.DataAccess.SGSPI
{
    public interface IDataAccessSGService
    { 
        /// <summary>
        /// 获取DQ生成的sql
        /// </summary>
        /// <param name="dqId"></param>
        /// <returns></returns>
        string GetDQActionSQL(string dqId);

        /// <summary>
        /// 修复查询方案
        /// </summary>
        /// <param name="queryPlan"></param>
        /// <returns></returns>
        QueryPlan RepairQueryPlan(QueryPlan queryPlan);

        TResult GetDOQueryResult(string id, Dictionary<string, object> parameters, Dictionary<string, object> exrParams = null);
    }
}